SftTree/OCX 7.0

SftTreeColumn.DisplayPosition Property

Softel vdm, Inc.

Returns the display position of this column.

Syntax       

Get

VB.NET

DispColIndex = object.DisplayPosition  As Short

VB

DispColIndex = object.DisplayPosition  As Integer

C#.NET

short DispColIndex = object.DisplayPosition;

VC++

short DispColIndex = object->DisplayPosition;
short DispColIndex = object->GetDisplayPosition();

C

HRESULT object->get_DisplayPosition(short* DispColIndex);

Delphi

DispColIndex := object.DisplayPosition   : Smallint;

object

A SftTreeColumn object.

DispColIndex

Returns the display position of this column.

Comments

The DisplayPosition property returns the display position of this column.

As a user reorders columns, this is completely transparent to the application.  An application still references cells and columns by the "real" column number, which is the original column number that the cell or column had before columns were reordered by the user.  While columns appear in a new order after dragging a column to a new position, the application references cells and columns by their real column number which never changes.

If a user reorders columns using column drag & drop, the (real) column numbers used by an application may need to be translated into the actual display column number, which is the column number as it appears to the user.

The ColumnsObj.Move method can be used to reorder columns under program control.

See Also  SftTreeColumn Object | Object Hierarchy


Feedback / comments / error reports for this topic
© 2015 - Softel vdm, Inc. - www.softelvdm.com